﻿package com.moonshineproject.utils 
{
	import flash.filesystem.File;
	
	
	public class Utils 
	{
		
		public static function getDirectoryPathFor(file:File):String
		{
			for (var i:int = file.url.length-1; i > 0; i--)
			{
				if (file.url.charAt(i) == "/") break;
			}
			return file.url.substring(0, i+1); 
		} 
		
		
	}
	
}